package cn.lngaosu.lwyd.module.integration.job;

import cn.lngaosu.lwyd.framework.quartz.core.handler.JobHandler;
import cn.lngaosu.lwyd.framework.tenant.core.job.TenantJob;
import cn.lngaosu.lwyd.module.integration.service.weixinarticle.WeixinArticleService;
import cn.lngaosu.lwyd.module.integration.service.weixinuser.WeixinUserService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class WeixinArticleJob implements JobHandler {

    @Resource
    private WeixinArticleService weixinArticleService;

    @Override
    @TenantJob
    public String execute(String param) {
        weixinArticleService.syncWeixinArticle();
        return "同步微信文章数据";
    }

}
